home *** CD-ROM | disk | FTP | other *** search
- package com.sun.xml.parser;
-
- import java.io.IOException;
- import java.io.InputStream;
- import java.io.Reader;
-
- abstract class XmlReader$BaseReader extends Reader {
- protected InputStream instream;
- protected byte[] buffer;
- protected int start;
- protected int finish;
-
- XmlReader$BaseReader(InputStream var1) {
- super(var1);
- this.instream = var1;
- this.buffer = new byte[8192];
- }
-
- public void close() throws IOException {
- if (this.instream != null) {
- this.instream.close();
- this.start = this.finish = 0;
- this.buffer = null;
- this.instream = null;
- }
-
- }
-
- public boolean ready() throws IOException {
- return this.instream == null || this.finish - this.start > 0 || this.instream.available() != 0;
- }
- }
-